package com.vstudy.zx.entity;

import java.io.Serializable;
import java.util.Date;

public class Message implements Serializable {
    private Long msg_id;
    private Conversation conversation;
    private Integer from_id; //消息方向
    private String msg_message;
    private Date msg_time;

    public Long getMsg_id() {
        return msg_id;
    }

    public void setMsg_id(Long msg_id) {
        this.msg_id = msg_id;
    }

    public Conversation getConversation() {
        return conversation;
    }

    public void setConversation(Conversation conversation) {
        this.conversation = conversation;
    }

    public Integer getFrom_id() {
        return from_id;
    }

    public void setFrom_id(Integer from_id) {
        this.from_id = from_id;
    }

    public String getMsg_message() {
        return msg_message;
    }

    public void setMsg_message(String msg_message) {
        this.msg_message = msg_message;
    }

    public Date getMsg_time() {
        return msg_time;
    }

    public void setMsg_time(Date msg_time) {
        this.msg_time = msg_time;
    }

    @Override
    public String toString() {
        return "Message{" +
                "msg_id=" + msg_id +
                ", conversation=" + conversation +
                ", from_id=" + from_id +
                ", msg_message='" + msg_message + '\'' +
                ", msg_time=" + msg_time +
                '}';
    }
}
